package com.chenfan.common.core.repository;

import java.util.List;

/**
 * @author weishili
 */
@Deprecated
public interface DataTunnel<T extends DataObject> {
    T create(T dataObject);

    default void delete(T dataObject) {

    }

    default void update(T dataObject) {

    }

    T get(String id);

    List<T> listByEntity(T entity);

}